﻿using System;
using System.Net;
using System.Threading;
using ZXW.DotNet.Common.Basic.Threading.Engines.CycleEngine;
using ZXW.DotNet.Common.Basic.Threading.Engines.WorkerEngine;

namespace WorkEngineTest
{
    class Program
    {
        static void Main()
        {
            Equipment equipment = new Equipment(IPAddress.Parse("192.168.0.100"));
            Equipment equipment1 = new Equipment(IPAddress.Parse("192.168.169.178"));
            Equipment equipment2 = new Equipment(IPAddress.Parse("192.168.169.178"));
            Equipment equipment3 = new Equipment(IPAddress.Parse("192.168.0.100"));
            Equipment equipment4= new Equipment(IPAddress.Parse("192.168.169.178"));
            Equipment equipment5 = new Equipment(IPAddress.Parse("192.168.0.100"));
            Equipment equipment6 = new Equipment(IPAddress.Parse("192.168.169.178"));
            Equipment equipment7= new Equipment(IPAddress.Parse("192.168.0.100"));
            Equipment equipment8 = new Equipment(IPAddress.Parse("192.168.169.178"));
            while (true)
            {
                equipment.Refrash();
                equipment1.Refrash();
                equipment2.Refrash();
                equipment3.Refrash();
                equipment4.Refrash();
                equipment5.Refrash();
                equipment6.Refrash();
                equipment7.Refrash();
                equipment8.Refrash();
                Thread.Sleep(10000);
            }

            Console.WriteLine("执行完成");
            Console.Read();
        }
    }
}
